import request from "./request";

//查询所有
export function searchAllApi(params: any) {
    return request({
        url: '/api/admin/sys/custom/field/page/find',
        method: 'get',
        params
    })
}

//用户登录
export function loginApi(data: any) {
    return request({
        url: '/user/login' ,
        method: 'post',
        data
    })
}

export function loginOutApi( ) {
    return request({
        url: '/tuser/logout' ,
        method: 'post',
    })
}


//添加修改
export function editApi(data: any) {
    return request({
        url: "/api/admin/sys/custom/field/edit",
        method: 'post',
        data
    })
}

//删除
export function deleteApi(id: any) {
    return request({
        url: "/api/admin/sys/custom/field/delete/" + id,
        method: 'GET',
    })
}